package com.vastcom.sigma.admin.dao;

import com.vastcom.sigma.admin.model.Materiainventory;
import com.vastcom.sigma.admin.model.Member;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface MemberDao extends JpaRepository<Member,String> {

    @Query("select m from Member  m where m.dept=:dept")
    List<Member> getMembersByDept(@Param("dept") String dept);

}
